<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "user_follow".
 *
 * @property integer $id
 * @property integer $uid
 * @property integer $fid
 * @property integer $status
 */
class UserFollow extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_follow';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'fid', 'status'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'uid' => Yii::t('app', '用户id'),
            'fid' => Yii::t('app', '被关注id'),
            'status' => Yii::t('app', '关注关系'),
        ];
    }
}
